<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<%@ include file="/common.jsp"%>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/common/css/index.css" type="text/css">
	<body onload="getopenurl()">
		<!-- 二级菜单开始 -->	
		<%
				for (int i = 0; i < 6; i++) {
			
		%>
		<div id="anniu">
			
			<div class="anniu-z_02"><a id="a_<%= i + 1%>" onclick="openchildMenu(<%=i + 1%>)" >演示例子<%= i %></div>
			
		</div>
		<!-- 二级菜单结束 -->
		<!-- 三级菜单开始 -->
		<!-- 二级菜单的第一项展开其他关闭 -->
		<div class="MM" id="newmenu<%=i + 1%>"	style='display: <%=i == 0 ? "block" : "none"%>'>
			<ul>
				<li id='childmenu1' menuno="<%= i%>"><a href="roleInsert.jsp" target="mainFrame">增加角色</a></td>
				<li id='childmenu2' menuno="<%= i%>"><a href="roleList.jsp" target="mainFrame">显示角色</a></td>
				<li id='childmenu3' menuno="<%= i%>"><a href="role_userroleInsert.jsp" target="mainFrame">用户角色设置</a></td>
				<li id='childmenu4' menuno="<%= i%>"><a href="role_userroleSearch_c.jsp" target="mainFrame">用户角色查询</a></td>
				<li id='childmenu5' menuno="<%= i%>"><a href="role_usermoduleInsert.jsp" target="mainFrame">用户模块设置</a></td>
				<li id='childmenu6' menuno="<%= i%>"><a href="role_usermoduleList.jsp" target="mainFrame">用户模块关联显示</a></td>
			</ul>
		</div>
		<!-- 三级菜单结束 -->
		<%
			}
		%>
	</body>
	<script type="text/javascript">
	var  open = 1;
	// 切换打开的菜单
	function openchildMenu(type){

		var menuid   = 'newmenu'+open;
		var l_menuid = 'newmenu'+type;
		if(open!=type){
			document.getElementById(menuid).style.display='none';
			document.getElementById(l_menuid).style.display='block';
			open = type;
		}
		
	}
	</script>
</html>